]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Drop seat state check after grabs
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Dec 2025 13:36:18 +0000 (14:36 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Jan 2026 16:28:44 +0000 (16:28 +0000)
Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>

js/ui/modalDialog.js

index 03681ac2d0be1e7d865fdf22a6e538ddef4db6c0..74fd156c6260d2697869dbf2894a837d5700c791 100644 (file)
@@ -234,11 +234,6 @@ export const ModalDialog = GObject.registerClass({
             return true;
 
         const grab = Main.pushModal(this, {actionMode: this._actionMode});
-        if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
-            Main.popModal(grab);
-            return false;
-        }
-
         this._grab = grab;
         Main.layoutManager.emit('system-modal-opened');